package com.foreveross.fetl.core.domain.freight.hbase;

import javax.persistence.ManyToOne;

import com.foreveross.fetl.common.domain.BaseHBaseEntity;
import com.foreveross.fetl.common.jpa.annontation.HBaseColumn;
/**
 * 价格实体,价格分种类
 * @author xiangsf 2013-2-6
 *
 */
@javax.persistence.Table(name="CRAWL_PLANE_FREIGHT")
public class PriceEntity extends BaseHBaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3820832498077978507L;
	/**
	 * 所属航班
	 */
	@ManyToOne
	private PlaneInfoEntity planeInfoEntity;
	
	/**
	 * 价格种类
	 */
	@HBaseColumn(qualifier="kind_no",family="priceInfos")
	private Integer kindNo = 0;
	/**
	 * 价格种类
	 */
	@HBaseColumn(qualifier="kind_name",family="priceInfos")
	private String kindName;
	/**
	 * 价格
	 */
	@HBaseColumn(qualifier="price",family="priceInfos")
	private Double price;

	public PriceEntity(){}
	
	public PriceEntity(Integer kindNo,String kindName, Double price){
		this.kindNo = kindNo;
		this.kindName = kindName;
		this.price = price;
	}

	public double getPrice() {
		return price;
	}
	
	public Integer getKindNo() {
		return kindNo;
	}

	public String getKindName() {
		return kindName;
	}

	public PlaneInfoEntity getPlaneInfoEntity() {
		return planeInfoEntity;
	}

	public void setPlaneInfoEntity(PlaneInfoEntity planeInfoEntity) {
		this.planeInfoEntity = planeInfoEntity;
	}

	@Override
	public String generateRowKey() {
		return planeInfoEntity.generateRowKey();
	}

	
}
